package com.cdd.goods.controller.api;

import com.cdd.goods.service.IGoodsStorageService;
import com.common.entity.GoodsType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/goods/goodsStorage")
public class ApiGoodsStorageController {
    @Autowired
    private IGoodsStorageService iGoodsStorageService;

    @GetMapping("/selectGoodsType")
    public List<GoodsType> selectGoodsType(){
       return  iGoodsStorageService.selectGoodsType();
    }
}
